function log()
{
    local TIMESTR=`date '+%Y-%m-%d %T'`
    touch $1
    echo "[$TIMESTR][$$] $2" >> $1
}
